package exp.day02;


//从键盘输入一段英文，将其中的英文单词分离出来：
// 已知单词之间的分隔符包括空格、 问号、句号(小数点)和分号。
// 例如：输入：There are apples; oranges and peaches on the table.
//输出：there
//are
//apples
//oranges
//and
//peaches
//on
//the
//table
public class P09_youhua {
    static String s = "There are apples; oranges and peaches on the table.";
    public static void main(String[] args) {
        String t = s.replaceAll("[^a-z]+"," ");
        String[] nums = t.split("[^a-z]");
        for (String i : nums) {
            System.out.println(i.trim());
        }
    }
}
